package com.atguigu.jxc.service;

import com.atguigu.jxc.domain.ServiceVO;
import com.atguigu.jxc.entity.Goods;

import java.util.Map;

public interface GoodsService {


    ServiceVO getCode();


    Map<String, Object> listInventory(Integer page, Integer rows, String codeOrName, Integer goodsTypeId);

    //分页查询无库存商品信息
    Map<String, Object> getNoInventoryQuantity(Integer page, Integer rows, String nameOrCode);
    //分页查询有库存商品信息
    Map<String, Object> getHasInventoryQuantity(Integer page, Integer rows, String nameOrCode);
    //添加商品期初库存
    void saveStock(Integer goodsId, Integer inventoryQuantity, double purchasingPrice);

    //删除商品库存
    void deleteStock(Integer goodsId);
}
